package com.warm.base.design.c_builder;

/**
 * @Date: 2019/11/21 15:56
 * @Author: LChuang
 * @Description:
 */
public class Director {

    /**
     * 指挥按顺序建造
     * @param builder
     * @return
     */
    public Product create(Builder builder){
        builder.buildB();
        builder.buildA();
        return builder.getProduct();
    }
}
